#ifndef LIGHT_SEND_HANDLE_H
#define LIGHT_SEND_HANDLE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "../LOG.h"
#include "../system_Config.h"

#include "../my_driver/spi_driver.h"
#include "../my_driver/gpio_drive.h"
#include "../mode_Config/direction_turn_on_config.h"
#include "light_send_config.h"


#define SPI1_LIGHT_TYPE WS2812_RGB //WS2812_BRG
#define SPI2_LIGHT_TYPE WS2812_GBR //WS2812_GBR


#define HSPI_HOST2 SPI2_HOST
#define HSPI_HOST3 SPI3_HOST

#define PIN_NUM_MOSI1 32 //1号位灯带引脚 70颗
#define PIN_NUM_MOSI2 21 //1号位灯带引脚 70颗

#define TH           0xFC //11111100
#define TL          0XC0 //11000000

#define PIN_S0 33
#define PIN_S1 25
#define PIN_S2 26


/*定义将spi1作为主灯带通道，将spi2作为辅助灯带通道*/
extern QueueHandle_t spi1_queue_handle;
extern QueueHandle_t spi2_queue_handle;

typedef struct 
{
    u8 *send_data; //待发送数据内容
    u16 send_len; //待发送数据长度
}spi_send_param; //spi口发送数据参数

void light_send_handle_fun_init();











#endif